package com.i.piccommon.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author lewis
 * @type class
 * @description
 * @since 2024/10/25
 */
@Data
//@TableName(autoResultMap = true)
@TableName("photograph")
public class PhotoGraph{
    @TableId(type = IdType.AUTO)
    private Integer pid;
    private String url;
    private Integer width;
    private Integer height;
    private String refer;
    @TableField(exist = false)
    private List<Category> category;
    //    @TableField(typeHandler = StringToListTypeHandler.class)
//    @TableField(exist = false)
//    private List<Tag> tags;
    private Integer deleted;
}

